import Vue from 'vue'
import App from './App.vue'
import router from './router/router.js'
import './fonts/iconfont.css'
import './assets/css/swiper.min.css'
import store from './store/index.js'

// 引入ele-ui库
import './ele-ui/index.js'
import 'element-ui/lib/theme-chalk/index.css'

// 引入Mockjs的配置
import './mock/mockServer.js'

Vue.config.productionTip = false

import TopHeader from './components/Top_header/Top_header.vue';
// 引入登录预验证错误弹窗组件
import AlertTip from './components/AlertTip/AlertTip.vue'

// 注册组件
Vue.component('TopHeader', TopHeader);
Vue.component('AlertTip', AlertTip);

const vm = new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')